package com.verifycode.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.verifycode.service.VerifyCodeService;

import io.swagger.annotations.ApiOperation;

@RestController
public class VerifyCodeController {

	@Autowired
	VerifyCodeService verifyCodeService;
	
	@GetMapping("/verifycode")
	@ApiOperation("获取验证码")
	public String getVerifyCode(){
 		return verifyCodeService.createVerifyCode();
	}
	
}
